package com.plian.system.dto.transfer;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.vo.fr.bank.AppSignVO;
import liquibase.util.MD5Util;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2022/11/8 11:02 AM
 * @Version: 1.0
 **/
@EqualsAndHashCode(callSuper = true)
@Data
public class DataPlatSign extends AppSignVO {


    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    private Date startTime;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    private Date endTime;

    public static void main(String[] args) {
        long time = DateUtil.now().getTime();
        System.out.println(time);
        String s = MD5Util.computeMD5("Z7S1A6B0A0I5G1X4" + "gt002" + time);
        System.out.println(s);
    }
}
